package com.longqin.wechat.entity;

/**自定义异常
 * @author longqin
 *
 */
public class MyException extends RuntimeException{
	private static final long serialVersionUID = 1L;
	
	private BaseResponse error;
	
	public MyException(){
		super();
	}
	
	public MyException(int code,String msg){
		super(msg);
		error=new BaseResponse(code, msg);
	}

	public BaseResponse getError() {
		return error;
	}

	public void setError(BaseResponse error) {
		this.error = error;
	}
	
}
